import React from 'react';
import { Spin } from 'antd';
import styles from './style.scss';

interface Props {
  isComponent: boolean;
}

export default (props: Props) => {
  const { isComponent = false } = props;
  return (
    <div className={isComponent ? styles.page : styles.full_page}>
      <Spin size="large" />
    </div>
  );
};
